﻿
namespace NetROS.Tiers.Windows.Forms
{
	/// <summary>
	/// abstract Dokument typed datagridview
	/// </summary>
	[System.ComponentModel.DesignerCategoryAttribute("code")]
	public abstract class DokumentDataGridViewBase : System.Windows.Forms.UserControl
	{	
		/// <summary> 
		/// Thrown when the current Entity changed.
		/// </summary>
		public event System.EventHandler<DokumentDataGridViewEventArgs> CurrentEntityChanged;
		
		#region Fields
				
		/// <summary> 
		/// the current entity.
		/// </summary>
		private Entities.Dokument _currentDokument = null;
		//private Dictionary<string, string> _columnsHeaders = new Dictionary<string, string>();
		
		/// <summary> 
		/// the datagridview instance
		/// </summary>
		protected System.Windows.Forms.DataGridView uxDokumentDataGridView;
		
		/// <summary> 
		/// the errorprovider
		/// </summary>
		protected System.Windows.Forms.ErrorProvider uxDokumentErrorProvider;
		
		/// <summary> 
		/// the bindingsource
		/// </summary>
		protected System.Windows.Forms.BindingSource uxDokumentBindingSource;
		
		
		/// <summary> 
		/// the DGV column associated with the ID property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxIDDataGridViewColumn;
		/// <summary> 
		/// the DGV column associated with the IDDokumentTip property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxIDDokumentTipDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Oznaka property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxOznakaDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Datum property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxDatumDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the DatumDo property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxDatumDoDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Napomena property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxNapomenaDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Napomena2 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxNapomena2DataGridViewColumn;
		/// <summary> 
		/// the DGV column associated with the IDKlijent property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxIDKlijentDataGridViewColumn;
		/// <summary> 
		/// the DGV column associated with the IDOrganizacijaOd property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxIDOrganizacijaOdDataGridViewColumn;
		/// <summary> 
		/// the DGV column associated with the IDOrganizacijaPrema property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxIDOrganizacijaPremaDataGridViewColumn;
		/// <summary> 
		/// the DGV column associated with the IDNacinTransporta property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxIDNacinTransportaDataGridViewColumn;
		/// <summary> 
		/// the DGV column associated with the IDNacinPlacanja property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxIDNacinPlacanjaDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the IDUserCreated property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxIDUserCreatedDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the IDUserModified property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxIDUserModifiedDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the DateCreated property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxDateCreatedDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the DateModified property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxDateModifiedDataGridViewColumn;
		/// <summary> 
		/// the DGV column associated with the IDUserIzdao property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxIDUserIzdaoDataGridViewColumn;
		/// <summary> 
		/// the DGV column associated with the IDUserPrimio property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxIDUserPrimioDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the RedBr property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxRedBrDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the NabavnaVrijednost property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxNabavnaVrijednostDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the PorezNabavneVrijednosti property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxPorezNabavneVrijednostiDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the IDStatus property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxIDStatusDataGridViewColumn;
		/// <summary> 
		/// the DGV column associated with the IDValute property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxIDValuteDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the VezaDokumenta property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxVezaDokumentaDataGridViewColumn;
		/// <summary> 
		/// the DGV column associated with the IDOrganizacijaZiroRacun property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxIDOrganizacijaZiroRacunDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the DokumentMijenjaCijenu property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxDokumentMijenjaCijenuDataGridViewColumn;
		
		#endregion
					
		#region Combo list
		
				
		private Entities.TList<Entities.Djelatnik> _IDUserPrimioList;
		
		/// <summary> 
		/// The list of selectable Djelatnik
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.Djelatnik> IDUserPrimioList
		{
			get {return this._IDUserPrimioList;}
			set 
			{
				this._IDUserPrimioList = value;
				this.uxIDUserPrimioDataGridViewColumn.DataSource = null;
				this.uxIDUserPrimioDataGridViewColumn.DataSource = this._IDUserPrimioList;
			}
		}
		
		private bool _allowNewItemInIDUserPrimioList;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of Djelatnik
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDUserPrimioList
		{
			get { return _allowNewItemInIDUserPrimioList;}
			set
			{
				this._allowNewItemInIDUserPrimioList = value;
				this.uxIDUserPrimioDataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
				
		private Entities.TList<Entities.Djelatnik> _IDUserIzdaoList;
		
		/// <summary> 
		/// The list of selectable Djelatnik
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.Djelatnik> IDUserIzdaoList
		{
			get {return this._IDUserIzdaoList;}
			set 
			{
				this._IDUserIzdaoList = value;
				this.uxIDUserIzdaoDataGridViewColumn.DataSource = null;
				this.uxIDUserIzdaoDataGridViewColumn.DataSource = this._IDUserIzdaoList;
			}
		}
		
		private bool _allowNewItemInIDUserIzdaoList;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of Djelatnik
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDUserIzdaoList
		{
			get { return _allowNewItemInIDUserIzdaoList;}
			set
			{
				this._allowNewItemInIDUserIzdaoList = value;
				this.uxIDUserIzdaoDataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
				
		private Entities.TList<Entities.DokumentTip> _IDDokumentTipList;
		
		/// <summary> 
		/// The list of selectable DokumentTip
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.DokumentTip> IDDokumentTipList
		{
			get {return this._IDDokumentTipList;}
			set 
			{
				this._IDDokumentTipList = value;
				this.uxIDDokumentTipDataGridViewColumn.DataSource = null;
				this.uxIDDokumentTipDataGridViewColumn.DataSource = this._IDDokumentTipList;
			}
		}
		
		private bool _allowNewItemInIDDokumentTipList;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of DokumentTip
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDDokumentTipList
		{
			get { return _allowNewItemInIDDokumentTipList;}
			set
			{
				this._allowNewItemInIDDokumentTipList = value;
				this.uxIDDokumentTipDataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
				
		private Entities.TList<Entities.Klijent> _IDKlijentList;
		
		/// <summary> 
		/// The list of selectable Klijent
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.Klijent> IDKlijentList
		{
			get {return this._IDKlijentList;}
			set 
			{
				this._IDKlijentList = value;
				this.uxIDKlijentDataGridViewColumn.DataSource = null;
				this.uxIDKlijentDataGridViewColumn.DataSource = this._IDKlijentList;
			}
		}
		
		private bool _allowNewItemInIDKlijentList;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of Klijent
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDKlijentList
		{
			get { return _allowNewItemInIDKlijentList;}
			set
			{
				this._allowNewItemInIDKlijentList = value;
				this.uxIDKlijentDataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
				
		private Entities.TList<Entities.NacinTransporta> _IDNacinTransportaList;
		
		/// <summary> 
		/// The list of selectable NacinTransporta
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.NacinTransporta> IDNacinTransportaList
		{
			get {return this._IDNacinTransportaList;}
			set 
			{
				this._IDNacinTransportaList = value;
				this.uxIDNacinTransportaDataGridViewColumn.DataSource = null;
				this.uxIDNacinTransportaDataGridViewColumn.DataSource = this._IDNacinTransportaList;
			}
		}
		
		private bool _allowNewItemInIDNacinTransportaList;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of NacinTransporta
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDNacinTransportaList
		{
			get { return _allowNewItemInIDNacinTransportaList;}
			set
			{
				this._allowNewItemInIDNacinTransportaList = value;
				this.uxIDNacinTransportaDataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
				
		private Entities.TList<Entities.NacinPlacanja> _IDNacinPlacanjaList;
		
		/// <summary> 
		/// The list of selectable NacinPlacanja
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.NacinPlacanja> IDNacinPlacanjaList
		{
			get {return this._IDNacinPlacanjaList;}
			set 
			{
				this._IDNacinPlacanjaList = value;
				this.uxIDNacinPlacanjaDataGridViewColumn.DataSource = null;
				this.uxIDNacinPlacanjaDataGridViewColumn.DataSource = this._IDNacinPlacanjaList;
			}
		}
		
		private bool _allowNewItemInIDNacinPlacanjaList;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of NacinPlacanja
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDNacinPlacanjaList
		{
			get { return _allowNewItemInIDNacinPlacanjaList;}
			set
			{
				this._allowNewItemInIDNacinPlacanjaList = value;
				this.uxIDNacinPlacanjaDataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
				
		private Entities.TList<Entities.Organizacija> _IDOrganizacijaOdList;
		
		/// <summary> 
		/// The list of selectable Organizacija
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.Organizacija> IDOrganizacijaOdList
		{
			get {return this._IDOrganizacijaOdList;}
			set 
			{
				this._IDOrganizacijaOdList = value;
				this.uxIDOrganizacijaOdDataGridViewColumn.DataSource = null;
				this.uxIDOrganizacijaOdDataGridViewColumn.DataSource = this._IDOrganizacijaOdList;
			}
		}
		
		private bool _allowNewItemInIDOrganizacijaOdList;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of Organizacija
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDOrganizacijaOdList
		{
			get { return _allowNewItemInIDOrganizacijaOdList;}
			set
			{
				this._allowNewItemInIDOrganizacijaOdList = value;
				this.uxIDOrganizacijaOdDataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
				
		private Entities.TList<Entities.Organizacija> _IDOrganizacijaPremaList;
		
		/// <summary> 
		/// The list of selectable Organizacija
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.Organizacija> IDOrganizacijaPremaList
		{
			get {return this._IDOrganizacijaPremaList;}
			set 
			{
				this._IDOrganizacijaPremaList = value;
				this.uxIDOrganizacijaPremaDataGridViewColumn.DataSource = null;
				this.uxIDOrganizacijaPremaDataGridViewColumn.DataSource = this._IDOrganizacijaPremaList;
			}
		}
		
		private bool _allowNewItemInIDOrganizacijaPremaList;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of Organizacija
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDOrganizacijaPremaList
		{
			get { return _allowNewItemInIDOrganizacijaPremaList;}
			set
			{
				this._allowNewItemInIDOrganizacijaPremaList = value;
				this.uxIDOrganizacijaPremaDataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
				
		private Entities.TList<Entities.OrganizacijaZiroRacun> _IDOrganizacijaZiroRacunList;
		
		/// <summary> 
		/// The list of selectable OrganizacijaZiroRacun
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.OrganizacijaZiroRacun> IDOrganizacijaZiroRacunList
		{
			get {return this._IDOrganizacijaZiroRacunList;}
			set 
			{
				this._IDOrganizacijaZiroRacunList = value;
				this.uxIDOrganizacijaZiroRacunDataGridViewColumn.DataSource = null;
				this.uxIDOrganizacijaZiroRacunDataGridViewColumn.DataSource = this._IDOrganizacijaZiroRacunList;
			}
		}
		
		private bool _allowNewItemInIDOrganizacijaZiroRacunList;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of OrganizacijaZiroRacun
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDOrganizacijaZiroRacunList
		{
			get { return _allowNewItemInIDOrganizacijaZiroRacunList;}
			set
			{
				this._allowNewItemInIDOrganizacijaZiroRacunList = value;
				this.uxIDOrganizacijaZiroRacunDataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
				
		private Entities.TList<Entities.Valuta> _IDValuteList;
		
		/// <summary> 
		/// The list of selectable Valuta
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.Valuta> IDValuteList
		{
			get {return this._IDValuteList;}
			set 
			{
				this._IDValuteList = value;
				this.uxIDValuteDataGridViewColumn.DataSource = null;
				this.uxIDValuteDataGridViewColumn.DataSource = this._IDValuteList;
			}
		}
		
		private bool _allowNewItemInIDValuteList;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of Valuta
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDValuteList
		{
			get { return _allowNewItemInIDValuteList;}
			set
			{
				this._allowNewItemInIDValuteList = value;
				this.uxIDValuteDataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
		#endregion
		
		#region Main Datasource
		
		private Entities.TList<Entities.Dokument> _DokumentList;
				
		/// <summary> 
		/// The list of Dokument to be displayed in the DGV.
		/// </summary>
		[System.ComponentModel.Category("Data")]
		public Entities.TList<Entities.Dokument> DokumentList
		{
			get {return this._DokumentList;}
			set
			{
				this._DokumentList = value;
				this.uxDokumentBindingSource.DataSource = null;
				this.uxDokumentBindingSource.DataSource = value;
				this.uxDokumentDataGridView.DataSource = null;
				this.uxDokumentDataGridView.DataSource = this.uxDokumentBindingSource;				
				//this.uxDokumentBindingSource.ListChanged += new System.ComponentModel.ListChangedEventHandler(uxDokumentBindingSource_ListChanged);
				this.uxDokumentBindingSource.CurrentItemChanged += new System.EventHandler(OnDokumentBindingSourceCurrentItemChanged);
			}
		}
		
		private void OnDokumentBindingSourceCurrentItemChanged(object sender, System.EventArgs e)
		{
			_currentDokument = uxDokumentBindingSource.Current as Entities.Dokument;
			
			if (_currentDokument != null)
			{
				_currentDokument.Validate();
			}
			//_Dokument.Validate();
			OnCurrentEntityChanged();
		}

		//void uxDokumentBindingSource_ListChanged(object sender, System.ComponentModel.ListChangedEventArgs e)
		//{
			//throw new Exception("The method or operation is not implemented.");
		//}		
		
		#endregion
		
		/// <summary>
		/// Gets the currently selected <c cref="Entities.Dokument"/> instance.
		/// </summary>
		public Entities.Dokument SelectedDokument
		{
			get {return this._currentDokument;}
		}
		
		#region other properties
		
		/// <summary>
		/// Gets or sets a value indicating whether you have provided your own data-management operations for the DataGridView control.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public bool VirtualMode
		{
			get {return this.uxDokumentDataGridView.VirtualMode;}
			set
			{
				this.uxDokumentDataGridView.VirtualMode = value;
			}
		}
		
		/// <summary>
		/// Gets or sets a value indicating whether the option to add rows is displayed to the user.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public bool AllowUserToAddRows
		{
			get {return this.uxDokumentDataGridView.AllowUserToAddRows;}
			set {this.uxDokumentDataGridView.AllowUserToAddRows = value;}
		}
		
		/// <summary>
		/// Gets or sets a value indicating whether the user is allowed to delete rows from the DataGridView.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public bool AllowUserToDeleteRows
		{
			get {return this.uxDokumentDataGridView.AllowUserToDeleteRows;}
			set {this.uxDokumentDataGridView.AllowUserToDeleteRows = value;}
		}
		
		/// <summary>
		/// Gets the <c cref="DataGridView"/> instance.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public System.Windows.Forms.DataGridView DataGridView
		{
			get {return this.uxDokumentDataGridView;}
		}
		
		/// <summary>
		/// Gets a collection that contains all the columns in the control.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]		
		[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Visible)]
		//[System.ComponentModel.EditorAttribute("System.Windows.Forms.Design.DataGridViewColumnCollectionEditor, System.Design", typeof(System.Drawing.Design.UITypeEditor))] 
		public System.Windows.Forms.DataGridViewColumnCollection Columns
		{
			get { return this.uxDokumentDataGridView.Columns; }
		}
		
		#endregion
		
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;
	
		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}
	
		#region Constructor
	
		/// <summary>
		/// Initializes a new instance of the <see cref="DokumentDataGridViewBase"/> class.
		/// </summary>
		public DokumentDataGridViewBase()
		{			
			this.components = new System.ComponentModel.Container();			
			
			this.uxDokumentDataGridView = new System.Windows.Forms.DataGridView();
			this.uxDokumentBindingSource = new System.Windows.Forms.BindingSource(this.components);
			this.uxDokumentErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.uxIDDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxIDDokumentTipDataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxOznakaDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxDatumDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxDatumDoDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxNapomenaDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxNapomena2DataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxIDKlijentDataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxIDOrganizacijaOdDataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxIDOrganizacijaPremaDataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxIDNacinTransportaDataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxIDNacinPlacanjaDataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxIDUserCreatedDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxIDUserModifiedDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxDateCreatedDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxDateModifiedDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxIDUserIzdaoDataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxIDUserPrimioDataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxRedBrDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxNabavnaVrijednostDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxPorezNabavneVrijednostiDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxIDStatusDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxIDValuteDataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxVezaDokumentaDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxIDOrganizacijaZiroRacunDataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxDokumentMijenjaCijenuDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			//this.uxIDUserPrimioBindingSource = new DjelatnikBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxIDUserPrimioBindingSource)).BeginInit();
			//this.uxIDUserIzdaoBindingSource = new DjelatnikBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxIDUserIzdaoBindingSource)).BeginInit();
			//this.uxIDDokumentTipBindingSource = new DokumentTipBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxIDDokumentTipBindingSource)).BeginInit();
			//this.uxIDKlijentBindingSource = new KlijentBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxIDKlijentBindingSource)).BeginInit();
			//this.uxIDNacinTransportaBindingSource = new NacinTransportaBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxIDNacinTransportaBindingSource)).BeginInit();
			//this.uxIDNacinPlacanjaBindingSource = new NacinPlacanjaBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxIDNacinPlacanjaBindingSource)).BeginInit();
			//this.uxIDOrganizacijaOdBindingSource = new OrganizacijaBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxIDOrganizacijaOdBindingSource)).BeginInit();
			//this.uxIDOrganizacijaPremaBindingSource = new OrganizacijaBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxIDOrganizacijaPremaBindingSource)).BeginInit();
			//this.uxIDOrganizacijaZiroRacunBindingSource = new OrganizacijaZiroRacunBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxIDOrganizacijaZiroRacunBindingSource)).BeginInit();
			//this.uxIDValuteBindingSource = new ValutaBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxIDValuteBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxDokumentDataGridView)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxDokumentBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxDokumentErrorProvider)).BeginInit();
			this.SuspendLayout();
						
			// 
			// uxDokumentErrorProvider
			// 
			this.uxDokumentErrorProvider.ContainerControl = this;
			this.uxDokumentErrorProvider.DataSource = this.uxDokumentBindingSource;						
			// 
			// uxDokumentDataGridView
			// 
			this.uxDokumentDataGridView.AutoGenerateColumns = false;
			this.uxDokumentDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
			this.uxDokumentDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
		this.uxIDDataGridViewColumn,
		this.uxIDDokumentTipDataGridViewColumn,
		this.uxOznakaDataGridViewColumn,
		this.uxDatumDataGridViewColumn,
		this.uxDatumDoDataGridViewColumn,
		this.uxNapomenaDataGridViewColumn,
		this.uxNapomena2DataGridViewColumn,
		this.uxIDKlijentDataGridViewColumn,
		this.uxIDOrganizacijaOdDataGridViewColumn,
		this.uxIDOrganizacijaPremaDataGridViewColumn,
		this.uxIDNacinTransportaDataGridViewColumn,
		this.uxIDNacinPlacanjaDataGridViewColumn,
		this.uxIDUserCreatedDataGridViewColumn,
		this.uxIDUserModifiedDataGridViewColumn,
		this.uxDateCreatedDataGridViewColumn,
		this.uxDateModifiedDataGridViewColumn,
		this.uxIDUserIzdaoDataGridViewColumn,
		this.uxIDUserPrimioDataGridViewColumn,
		this.uxRedBrDataGridViewColumn,
		this.uxNabavnaVrijednostDataGridViewColumn,
		this.uxPorezNabavneVrijednostiDataGridViewColumn,
		this.uxIDStatusDataGridViewColumn,
		this.uxIDValuteDataGridViewColumn,
		this.uxVezaDokumentaDataGridViewColumn,
		this.uxIDOrganizacijaZiroRacunDataGridViewColumn,
		this.uxDokumentMijenjaCijenuDataGridViewColumn			});
			this.uxDokumentDataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
			this.uxDokumentDataGridView.Location = new System.Drawing.Point(0, 0);
			this.uxDokumentDataGridView.Name = "uxDokumentDataGridView";
			this.uxDokumentDataGridView.Size = new System.Drawing.Size(470, 300);
			this.uxDokumentDataGridView.TabIndex = 0;	
			this.uxDokumentDataGridView.BackgroundColor = System.Drawing.Color.WhiteSmoke;
			this.uxDokumentDataGridView.EnableHeadersVisualStyles = false;
			this.uxDokumentDataGridView.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.OnDokumentDataGridViewDataError);
			this.uxDokumentDataGridView.CellValueNeeded += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.OnDokumentDataGridViewCellValueNeeded);
			this.uxDokumentDataGridView.CellValuePushed += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.OnDokumentDataGridViewCellValuePushed);
			
			//
			// uxIDDataGridViewColumn
			//
			this.uxIDDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDDataGridViewColumn.DataPropertyName = "ID";
			this.uxIDDataGridViewColumn.HeaderText = "ID";
			this.uxIDDataGridViewColumn.Name = "uxIDDataGridViewColumn";
			this.uxIDDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDDataGridViewColumn.ReadOnly = true;		
			//
			// uxIDDokumentTipDataGridViewColumn
			//
			this.uxIDDokumentTipDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDDokumentTipDataGridViewColumn.DataPropertyName = "IDDokumentTip";
			this.uxIDDokumentTipDataGridViewColumn.HeaderText = "IDDokumentTip";
			this.uxIDDokumentTipDataGridViewColumn.Name = "uxIDDokumentTipDataGridViewColumn";
			this.uxIDDokumentTipDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDDokumentTipDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDDokumentTipDataGridViewColumn.ReadOnly = false;		
			//
			// uxOznakaDataGridViewColumn
			//
			this.uxOznakaDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxOznakaDataGridViewColumn.DataPropertyName = "Oznaka";
			this.uxOznakaDataGridViewColumn.HeaderText = "Oznaka";
			this.uxOznakaDataGridViewColumn.Name = "uxOznakaDataGridViewColumn";
			this.uxOznakaDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxOznakaDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxOznakaDataGridViewColumn.ReadOnly = false;		
			//
			// uxDatumDataGridViewColumn
			//
			this.uxDatumDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxDatumDataGridViewColumn.DataPropertyName = "Datum";
			this.uxDatumDataGridViewColumn.HeaderText = "Datum";
			this.uxDatumDataGridViewColumn.Name = "uxDatumDataGridViewColumn";
			this.uxDatumDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxDatumDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxDatumDataGridViewColumn.ReadOnly = false;		
			//
			// uxDatumDoDataGridViewColumn
			//
			this.uxDatumDoDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxDatumDoDataGridViewColumn.DataPropertyName = "DatumDo";
			this.uxDatumDoDataGridViewColumn.HeaderText = "DatumDo";
			this.uxDatumDoDataGridViewColumn.Name = "uxDatumDoDataGridViewColumn";
			this.uxDatumDoDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxDatumDoDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxDatumDoDataGridViewColumn.ReadOnly = false;		
			//
			// uxNapomenaDataGridViewColumn
			//
			this.uxNapomenaDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxNapomenaDataGridViewColumn.DataPropertyName = "Napomena";
			this.uxNapomenaDataGridViewColumn.HeaderText = "Napomena";
			this.uxNapomenaDataGridViewColumn.Name = "uxNapomenaDataGridViewColumn";
			this.uxNapomenaDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxNapomenaDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxNapomenaDataGridViewColumn.ReadOnly = false;		
			//
			// uxNapomena2DataGridViewColumn
			//
			this.uxNapomena2DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxNapomena2DataGridViewColumn.DataPropertyName = "Napomena2";
			this.uxNapomena2DataGridViewColumn.HeaderText = "Napomena2";
			this.uxNapomena2DataGridViewColumn.Name = "uxNapomena2DataGridViewColumn";
			this.uxNapomena2DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxNapomena2DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxNapomena2DataGridViewColumn.ReadOnly = false;		
			//
			// uxIDKlijentDataGridViewColumn
			//
			this.uxIDKlijentDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDKlijentDataGridViewColumn.DataPropertyName = "IDKlijent";
			this.uxIDKlijentDataGridViewColumn.HeaderText = "IDKlijent";
			this.uxIDKlijentDataGridViewColumn.Name = "uxIDKlijentDataGridViewColumn";
			this.uxIDKlijentDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDKlijentDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDKlijentDataGridViewColumn.ReadOnly = false;		
			//
			// uxIDOrganizacijaOdDataGridViewColumn
			//
			this.uxIDOrganizacijaOdDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDOrganizacijaOdDataGridViewColumn.DataPropertyName = "IDOrganizacijaOd";
			this.uxIDOrganizacijaOdDataGridViewColumn.HeaderText = "IDOrganizacijaOd";
			this.uxIDOrganizacijaOdDataGridViewColumn.Name = "uxIDOrganizacijaOdDataGridViewColumn";
			this.uxIDOrganizacijaOdDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDOrganizacijaOdDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDOrganizacijaOdDataGridViewColumn.ReadOnly = false;		
			//
			// uxIDOrganizacijaPremaDataGridViewColumn
			//
			this.uxIDOrganizacijaPremaDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDOrganizacijaPremaDataGridViewColumn.DataPropertyName = "IDOrganizacijaPrema";
			this.uxIDOrganizacijaPremaDataGridViewColumn.HeaderText = "IDOrganizacijaPrema";
			this.uxIDOrganizacijaPremaDataGridViewColumn.Name = "uxIDOrganizacijaPremaDataGridViewColumn";
			this.uxIDOrganizacijaPremaDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDOrganizacijaPremaDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDOrganizacijaPremaDataGridViewColumn.ReadOnly = false;		
			//
			// uxIDNacinTransportaDataGridViewColumn
			//
			this.uxIDNacinTransportaDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDNacinTransportaDataGridViewColumn.DataPropertyName = "IDNacinTransporta";
			this.uxIDNacinTransportaDataGridViewColumn.HeaderText = "IDNacinTransporta";
			this.uxIDNacinTransportaDataGridViewColumn.Name = "uxIDNacinTransportaDataGridViewColumn";
			this.uxIDNacinTransportaDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDNacinTransportaDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDNacinTransportaDataGridViewColumn.ReadOnly = false;		
			//
			// uxIDNacinPlacanjaDataGridViewColumn
			//
			this.uxIDNacinPlacanjaDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDNacinPlacanjaDataGridViewColumn.DataPropertyName = "IDNacinPlacanja";
			this.uxIDNacinPlacanjaDataGridViewColumn.HeaderText = "IDNacinPlacanja";
			this.uxIDNacinPlacanjaDataGridViewColumn.Name = "uxIDNacinPlacanjaDataGridViewColumn";
			this.uxIDNacinPlacanjaDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDNacinPlacanjaDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDNacinPlacanjaDataGridViewColumn.ReadOnly = false;		
			//
			// uxIDUserCreatedDataGridViewColumn
			//
			this.uxIDUserCreatedDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDUserCreatedDataGridViewColumn.DataPropertyName = "IDUserCreated";
			this.uxIDUserCreatedDataGridViewColumn.HeaderText = "IDUserCreated";
			this.uxIDUserCreatedDataGridViewColumn.Name = "uxIDUserCreatedDataGridViewColumn";
			this.uxIDUserCreatedDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDUserCreatedDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDUserCreatedDataGridViewColumn.ReadOnly = false;		
			//
			// uxIDUserModifiedDataGridViewColumn
			//
			this.uxIDUserModifiedDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDUserModifiedDataGridViewColumn.DataPropertyName = "IDUserModified";
			this.uxIDUserModifiedDataGridViewColumn.HeaderText = "IDUserModified";
			this.uxIDUserModifiedDataGridViewColumn.Name = "uxIDUserModifiedDataGridViewColumn";
			this.uxIDUserModifiedDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDUserModifiedDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDUserModifiedDataGridViewColumn.ReadOnly = false;		
			//
			// uxDateCreatedDataGridViewColumn
			//
			this.uxDateCreatedDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxDateCreatedDataGridViewColumn.DataPropertyName = "DateCreated";
			this.uxDateCreatedDataGridViewColumn.HeaderText = "DateCreated";
			this.uxDateCreatedDataGridViewColumn.Name = "uxDateCreatedDataGridViewColumn";
			this.uxDateCreatedDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxDateCreatedDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxDateCreatedDataGridViewColumn.ReadOnly = false;		
			//
			// uxDateModifiedDataGridViewColumn
			//
			this.uxDateModifiedDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxDateModifiedDataGridViewColumn.DataPropertyName = "DateModified";
			this.uxDateModifiedDataGridViewColumn.HeaderText = "DateModified";
			this.uxDateModifiedDataGridViewColumn.Name = "uxDateModifiedDataGridViewColumn";
			this.uxDateModifiedDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxDateModifiedDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxDateModifiedDataGridViewColumn.ReadOnly = false;		
			//
			// uxIDUserIzdaoDataGridViewColumn
			//
			this.uxIDUserIzdaoDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDUserIzdaoDataGridViewColumn.DataPropertyName = "IDUserIzdao";
			this.uxIDUserIzdaoDataGridViewColumn.HeaderText = "IDUserIzdao";
			this.uxIDUserIzdaoDataGridViewColumn.Name = "uxIDUserIzdaoDataGridViewColumn";
			this.uxIDUserIzdaoDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDUserIzdaoDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDUserIzdaoDataGridViewColumn.ReadOnly = false;		
			//
			// uxIDUserPrimioDataGridViewColumn
			//
			this.uxIDUserPrimioDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDUserPrimioDataGridViewColumn.DataPropertyName = "IDUserPrimio";
			this.uxIDUserPrimioDataGridViewColumn.HeaderText = "IDUserPrimio";
			this.uxIDUserPrimioDataGridViewColumn.Name = "uxIDUserPrimioDataGridViewColumn";
			this.uxIDUserPrimioDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDUserPrimioDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDUserPrimioDataGridViewColumn.ReadOnly = false;		
			//
			// uxRedBrDataGridViewColumn
			//
			this.uxRedBrDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxRedBrDataGridViewColumn.DataPropertyName = "RedBr";
			this.uxRedBrDataGridViewColumn.HeaderText = "RedBr";
			this.uxRedBrDataGridViewColumn.Name = "uxRedBrDataGridViewColumn";
			this.uxRedBrDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxRedBrDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxRedBrDataGridViewColumn.ReadOnly = false;		
			//
			// uxNabavnaVrijednostDataGridViewColumn
			//
			this.uxNabavnaVrijednostDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxNabavnaVrijednostDataGridViewColumn.DataPropertyName = "NabavnaVrijednost";
			this.uxNabavnaVrijednostDataGridViewColumn.HeaderText = "NabavnaVrijednost";
			this.uxNabavnaVrijednostDataGridViewColumn.Name = "uxNabavnaVrijednostDataGridViewColumn";
			this.uxNabavnaVrijednostDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxNabavnaVrijednostDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxNabavnaVrijednostDataGridViewColumn.ReadOnly = false;		
			//
			// uxPorezNabavneVrijednostiDataGridViewColumn
			//
			this.uxPorezNabavneVrijednostiDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxPorezNabavneVrijednostiDataGridViewColumn.DataPropertyName = "PorezNabavneVrijednosti";
			this.uxPorezNabavneVrijednostiDataGridViewColumn.HeaderText = "PorezNabavneVrijednosti";
			this.uxPorezNabavneVrijednostiDataGridViewColumn.Name = "uxPorezNabavneVrijednostiDataGridViewColumn";
			this.uxPorezNabavneVrijednostiDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxPorezNabavneVrijednostiDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxPorezNabavneVrijednostiDataGridViewColumn.ReadOnly = false;		
			//
			// uxIDStatusDataGridViewColumn
			//
			this.uxIDStatusDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDStatusDataGridViewColumn.DataPropertyName = "IDStatus";
			this.uxIDStatusDataGridViewColumn.HeaderText = "IDStatus";
			this.uxIDStatusDataGridViewColumn.Name = "uxIDStatusDataGridViewColumn";
			this.uxIDStatusDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDStatusDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDStatusDataGridViewColumn.ReadOnly = false;		
			//
			// uxIDValuteDataGridViewColumn
			//
			this.uxIDValuteDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDValuteDataGridViewColumn.DataPropertyName = "IDValute";
			this.uxIDValuteDataGridViewColumn.HeaderText = "IDValute";
			this.uxIDValuteDataGridViewColumn.Name = "uxIDValuteDataGridViewColumn";
			this.uxIDValuteDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDValuteDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDValuteDataGridViewColumn.ReadOnly = false;		
			//
			// uxVezaDokumentaDataGridViewColumn
			//
			this.uxVezaDokumentaDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxVezaDokumentaDataGridViewColumn.DataPropertyName = "VezaDokumenta";
			this.uxVezaDokumentaDataGridViewColumn.HeaderText = "VezaDokumenta";
			this.uxVezaDokumentaDataGridViewColumn.Name = "uxVezaDokumentaDataGridViewColumn";
			this.uxVezaDokumentaDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxVezaDokumentaDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxVezaDokumentaDataGridViewColumn.ReadOnly = false;		
			//
			// uxIDOrganizacijaZiroRacunDataGridViewColumn
			//
			this.uxIDOrganizacijaZiroRacunDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDOrganizacijaZiroRacunDataGridViewColumn.DataPropertyName = "IDOrganizacijaZiroRacun";
			this.uxIDOrganizacijaZiroRacunDataGridViewColumn.HeaderText = "IDOrganizacijaZiroRacun";
			this.uxIDOrganizacijaZiroRacunDataGridViewColumn.Name = "uxIDOrganizacijaZiroRacunDataGridViewColumn";
			this.uxIDOrganizacijaZiroRacunDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDOrganizacijaZiroRacunDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDOrganizacijaZiroRacunDataGridViewColumn.ReadOnly = false;		
			//
			// uxDokumentMijenjaCijenuDataGridViewColumn
			//
			this.uxDokumentMijenjaCijenuDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxDokumentMijenjaCijenuDataGridViewColumn.DataPropertyName = "DokumentMijenjaCijenu";
			this.uxDokumentMijenjaCijenuDataGridViewColumn.HeaderText = "DokumentMijenjaCijenu";
			this.uxDokumentMijenjaCijenuDataGridViewColumn.Name = "uxDokumentMijenjaCijenuDataGridViewColumn";
			this.uxDokumentMijenjaCijenuDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxDokumentMijenjaCijenuDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxDokumentMijenjaCijenuDataGridViewColumn.ReadOnly = true;		
			//
			// uxIDUserPrimioDataGridViewColumn
			//				
			this.uxIDUserPrimioDataGridViewColumn.DisplayMember = "Naziv";	
			this.uxIDUserPrimioDataGridViewColumn.ValueMember = "ID";	
			this.uxIDUserPrimioDataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxIDUserPrimioDataGridViewColumn.DataSource = uxIDUserPrimioBindingSource;				
				
			//
			// uxIDUserIzdaoDataGridViewColumn
			//				
			this.uxIDUserIzdaoDataGridViewColumn.DisplayMember = "Naziv";	
			this.uxIDUserIzdaoDataGridViewColumn.ValueMember = "ID";	
			this.uxIDUserIzdaoDataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxIDUserIzdaoDataGridViewColumn.DataSource = uxIDUserIzdaoBindingSource;				
				
			//
			// uxIDDokumentTipDataGridViewColumn
			//				
			this.uxIDDokumentTipDataGridViewColumn.DisplayMember = "Naziv";	
			this.uxIDDokumentTipDataGridViewColumn.ValueMember = "ID";	
			this.uxIDDokumentTipDataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxIDDokumentTipDataGridViewColumn.DataSource = uxIDDokumentTipBindingSource;				
				
			//
			// uxIDKlijentDataGridViewColumn
			//				
			this.uxIDKlijentDataGridViewColumn.DisplayMember = "ImeKlijenta";	
			this.uxIDKlijentDataGridViewColumn.ValueMember = "ID";	
			this.uxIDKlijentDataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxIDKlijentDataGridViewColumn.DataSource = uxIDKlijentBindingSource;				
				
			//
			// uxIDNacinTransportaDataGridViewColumn
			//				
			this.uxIDNacinTransportaDataGridViewColumn.DisplayMember = "Naziv";	
			this.uxIDNacinTransportaDataGridViewColumn.ValueMember = "ID";	
			this.uxIDNacinTransportaDataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxIDNacinTransportaDataGridViewColumn.DataSource = uxIDNacinTransportaBindingSource;				
				
			//
			// uxIDNacinPlacanjaDataGridViewColumn
			//				
			this.uxIDNacinPlacanjaDataGridViewColumn.DisplayMember = "Naziv";	
			this.uxIDNacinPlacanjaDataGridViewColumn.ValueMember = "ID";	
			this.uxIDNacinPlacanjaDataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxIDNacinPlacanjaDataGridViewColumn.DataSource = uxIDNacinPlacanjaBindingSource;				
				
			//
			// uxIDOrganizacijaOdDataGridViewColumn
			//				
			this.uxIDOrganizacijaOdDataGridViewColumn.DisplayMember = "Naziv";	
			this.uxIDOrganizacijaOdDataGridViewColumn.ValueMember = "ID";	
			this.uxIDOrganizacijaOdDataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxIDOrganizacijaOdDataGridViewColumn.DataSource = uxIDOrganizacijaOdBindingSource;				
				
			//
			// uxIDOrganizacijaPremaDataGridViewColumn
			//				
			this.uxIDOrganizacijaPremaDataGridViewColumn.DisplayMember = "Naziv";	
			this.uxIDOrganizacijaPremaDataGridViewColumn.ValueMember = "ID";	
			this.uxIDOrganizacijaPremaDataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxIDOrganizacijaPremaDataGridViewColumn.DataSource = uxIDOrganizacijaPremaBindingSource;				
				
			//
			// uxIDOrganizacijaZiroRacunDataGridViewColumn
			//				
			this.uxIDOrganizacijaZiroRacunDataGridViewColumn.DisplayMember = "IDOrganizacija";	
			this.uxIDOrganizacijaZiroRacunDataGridViewColumn.ValueMember = "ID";	
			this.uxIDOrganizacijaZiroRacunDataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxIDOrganizacijaZiroRacunDataGridViewColumn.DataSource = uxIDOrganizacijaZiroRacunBindingSource;				
				
			//
			// uxIDValuteDataGridViewColumn
			//				
			this.uxIDValuteDataGridViewColumn.DisplayMember = "Naziv";	
			this.uxIDValuteDataGridViewColumn.ValueMember = "ID";	
			this.uxIDValuteDataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxIDValuteDataGridViewColumn.DataSource = uxIDValuteBindingSource;				
				
			
			// this
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.Controls.Add(this.uxDokumentDataGridView);
			this.Name = "DokumentDataGridView";
			this.Size = new System.Drawing.Size(470, 300);
			//((System.ComponentModel.ISupportInitialize)(this.uxIDUserPrimioBindingSource)).EndInit();
			//((System.ComponentModel.ISupportInitialize)(this.uxIDUserIzdaoBindingSource)).EndInit();
			//((System.ComponentModel.ISupportInitialize)(this.uxIDDokumentTipBindingSource)).EndInit();
			//((System.ComponentModel.ISupportInitialize)(this.uxIDKlijentBindingSource)).EndInit();
			//((System.ComponentModel.ISupportInitialize)(this.uxIDNacinTransportaBindingSource)).EndInit();
			//((System.ComponentModel.ISupportInitialize)(this.uxIDNacinPlacanjaBindingSource)).EndInit();
			//((System.ComponentModel.ISupportInitialize)(this.uxIDOrganizacijaOdBindingSource)).EndInit();
			//((System.ComponentModel.ISupportInitialize)(this.uxIDOrganizacijaPremaBindingSource)).EndInit();
			//((System.ComponentModel.ISupportInitialize)(this.uxIDOrganizacijaZiroRacunBindingSource)).EndInit();
			//((System.ComponentModel.ISupportInitialize)(this.uxIDValuteBindingSource)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxDokumentErrorProvider)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxDokumentDataGridView)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxDokumentBindingSource)).EndInit();
			this.ResumeLayout(false);
		}
		#endregion
				
		#region events
		
		/// <summary>
		/// Raised the CurrentEntityChanged event.
		/// </summary>
		protected void OnCurrentEntityChanged()
		{
			if (CurrentEntityChanged != null)
			{
				DokumentDataGridViewEventArgs args = new DokumentDataGridViewEventArgs();
				args.Dokument = _currentDokument;
				CurrentEntityChanged(this, args); 
			}
		}
		
		#endregion
		
		/// <summary>
		/// Strongly typed event 
		/// </summary>
		public class DokumentDataGridViewEventArgs : System.EventArgs
		{
			private Entities.Dokument	_Dokument;
	
			/// <summary>
			/// the  Entities.Dokument instance.
			/// </summary>
			public Entities.Dokument Dokument
			{
				get { return _Dokument; }
				set { _Dokument = value; }
			}	
		}
		
		/// <summary>
		/// Handles the DataError event of the uxDokumentDataGridView control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewDataErrorEventArgs"/> instance containing the event data.</param>
		protected void OnDokumentDataGridViewDataError(object sender, System.Windows.Forms.DataGridViewDataErrorEventArgs e)
		{
			System.Diagnostics.Debug.WriteLine(string.Format( "{0}, {1}", e.ColumnIndex, e.RowIndex));
		}
		
		/// <summary>
		/// Handles the CellValueNeeded event of the uxDokumentDataGridView control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param>
		protected void OnDokumentDataGridViewCellValueNeeded(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e)
		{
			switch(uxDokumentDataGridView.Columns[e.ColumnIndex].Name)
			{
					case "uxIDDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].ID;
						break;
					case "uxIDDokumentTipDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].IDDokumentTip;
						break;
					case "uxOznakaDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].Oznaka;
						break;
					case "uxDatumDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].Datum;
						break;
					case "uxDatumDoDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].DatumDo;
						break;
					case "uxNapomenaDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].Napomena;
						break;
					case "uxNapomena2DataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].Napomena2;
						break;
					case "uxIDKlijentDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].IDKlijent;
						break;
					case "uxIDOrganizacijaOdDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].IDOrganizacijaOd;
						break;
					case "uxIDOrganizacijaPremaDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].IDOrganizacijaPrema;
						break;
					case "uxIDNacinTransportaDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].IDNacinTransporta;
						break;
					case "uxIDNacinPlacanjaDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].IDNacinPlacanja;
						break;
					case "uxIDUserCreatedDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].IDUserCreated;
						break;
					case "uxIDUserModifiedDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].IDUserModified;
						break;
					case "uxDateCreatedDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].DateCreated;
						break;
					case "uxDateModifiedDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].DateModified;
						break;
					case "uxIDUserIzdaoDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].IDUserIzdao;
						break;
					case "uxIDUserPrimioDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].IDUserPrimio;
						break;
					case "uxRedBrDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].RedBr;
						break;
					case "uxNabavnaVrijednostDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].NabavnaVrijednost;
						break;
					case "uxPorezNabavneVrijednostiDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].PorezNabavneVrijednosti;
						break;
					case "uxIDStatusDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].IDStatus;
						break;
					case "uxIDValuteDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].IDValute;
						break;
					case "uxVezaDokumentaDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].VezaDokumenta;
						break;
					case "uxIDOrganizacijaZiroRacunDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].IDOrganizacijaZiroRacun;
						break;
					case "uxDokumentMijenjaCijenuDataGridViewColumn":
						e.Value = DokumentList[e.RowIndex].DokumentMijenjaCijenu;
						break;
				default:
				break;
			}
		}
		
		/// <summary>
		/// Handles the CellValuePushed event of the uxDokumentDataGridView control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param>
		protected void OnDokumentDataGridViewCellValuePushed(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e)
		{
			switch(uxDokumentDataGridView.Columns[e.ColumnIndex].Name)
			{
					case "uxIDDataGridViewColumn":
						DokumentList[e.RowIndex].ID = (System.Int32)e.Value;
						break;
					case "uxIDDokumentTipDataGridViewColumn":
						DokumentList[e.RowIndex].IDDokumentTip = (System.Int32)e.Value;
						break;
					case "uxOznakaDataGridViewColumn":
						DokumentList[e.RowIndex].Oznaka = (System.String)e.Value;
						break;
					case "uxDatumDataGridViewColumn":
						DokumentList[e.RowIndex].Datum = (System.DateTime)e.Value;
						break;
					case "uxDatumDoDataGridViewColumn":
						DokumentList[e.RowIndex].DatumDo = (System.DateTime?)e.Value;
						break;
					case "uxNapomenaDataGridViewColumn":
						DokumentList[e.RowIndex].Napomena = (System.String)e.Value;
						break;
					case "uxNapomena2DataGridViewColumn":
						DokumentList[e.RowIndex].Napomena2 = (System.String)e.Value;
						break;
					case "uxIDKlijentDataGridViewColumn":
						DokumentList[e.RowIndex].IDKlijent = (System.Int32?)e.Value;
						break;
					case "uxIDOrganizacijaOdDataGridViewColumn":
						DokumentList[e.RowIndex].IDOrganizacijaOd = (System.Int32?)e.Value;
						break;
					case "uxIDOrganizacijaPremaDataGridViewColumn":
						DokumentList[e.RowIndex].IDOrganizacijaPrema = (System.Int32?)e.Value;
						break;
					case "uxIDNacinTransportaDataGridViewColumn":
						DokumentList[e.RowIndex].IDNacinTransporta = (System.Int32?)e.Value;
						break;
					case "uxIDNacinPlacanjaDataGridViewColumn":
						DokumentList[e.RowIndex].IDNacinPlacanja = (System.Int32?)e.Value;
						break;
					case "uxIDUserCreatedDataGridViewColumn":
						DokumentList[e.RowIndex].IDUserCreated = (System.Int32)e.Value;
						break;
					case "uxIDUserModifiedDataGridViewColumn":
						DokumentList[e.RowIndex].IDUserModified = (System.Int32)e.Value;
						break;
					case "uxDateCreatedDataGridViewColumn":
						DokumentList[e.RowIndex].DateCreated = (System.DateTime)e.Value;
						break;
					case "uxDateModifiedDataGridViewColumn":
						DokumentList[e.RowIndex].DateModified = (System.DateTime)e.Value;
						break;
					case "uxIDUserIzdaoDataGridViewColumn":
						DokumentList[e.RowIndex].IDUserIzdao = (System.Int32)e.Value;
						break;
					case "uxIDUserPrimioDataGridViewColumn":
						DokumentList[e.RowIndex].IDUserPrimio = (System.Int32?)e.Value;
						break;
					case "uxRedBrDataGridViewColumn":
						DokumentList[e.RowIndex].RedBr = (System.Int32?)e.Value;
						break;
					case "uxNabavnaVrijednostDataGridViewColumn":
						DokumentList[e.RowIndex].NabavnaVrijednost = (System.Decimal?)e.Value;
						break;
					case "uxPorezNabavneVrijednostiDataGridViewColumn":
						DokumentList[e.RowIndex].PorezNabavneVrijednosti = (System.Single?)e.Value;
						break;
					case "uxIDStatusDataGridViewColumn":
						DokumentList[e.RowIndex].IDStatus = (System.Int32)e.Value;
						break;
					case "uxIDValuteDataGridViewColumn":
						DokumentList[e.RowIndex].IDValute = (System.Int32?)e.Value;
						break;
					case "uxVezaDokumentaDataGridViewColumn":
						DokumentList[e.RowIndex].VezaDokumenta = (System.String)e.Value;
						break;
					case "uxIDOrganizacijaZiroRacunDataGridViewColumn":
						DokumentList[e.RowIndex].IDOrganizacijaZiroRacun = (System.Int32?)e.Value;
						break;
					case "uxDokumentMijenjaCijenuDataGridViewColumn":
						DokumentList[e.RowIndex].DokumentMijenjaCijenu = (System.Int32)e.Value;
						break;
				default:
				break;
			}
		}
	}
}
